#include "../include/regs.h"

word CodeH, CodeL;

bool RUNNING, ERROR, Zero, Sign;

IREG intRegs[128];
FREG floatReg[64];
DREG doublReg[64];

void checkValueQ(qword value)
{
	Zero = Sign = false;
	if (value == 0)
		Zero = 1;
	else if (value < 0)
		Sign = 1;
}
void checkValueF(float value)
{
	Zero = Sign = false;
	if (value == 0)
		Zero = 1;
	else if (value < 0)
		Sign = 1;
}
void checkValueD(double value)
{
	Zero = Sign = false;
	if (value == 0)
		Zero = 1;
	else if (value < 0)
		Sign = 1;
}